﻿using Microsoft.EntityFrameworkCore;
using Paas.Pioneer.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.Pioneer.Admin.Core.Domain.Works.Appendix
{
    /// <summary>
    /// 附件表
    /// </summary>
    [Table("Works_Appendix")]
    [Comment("附件表")]
    [Index(nameof(LinkId), Name = "IDX_LinkId")]
    public class Works_AppendixEntity : BaseEntity
    {
        /// <summary>
        /// 附件大小
        /// </summary>
        [Comment("附件大小")]
        [Column("AppendixSize", TypeName = "double")]
        public double? AppendixSize { get; set; }

        /// <summary>
        /// 附件扩展名
        /// </summary>
        [Comment("附件扩展名")]
        [Column("AppendixExt", TypeName = "varchar(40)")]
        public string AppendixExt { get; set; }

        /// <summary>
        /// 附件名称
        /// </summary>
        [Comment("附件名称")]
        [Column("AppendixTitle", TypeName = "varchar(255)")]
        public string AppendixTitle { get; set; }

        /// <summary>
        /// 附件路径
        /// </summary>
        [Comment("附件路径")]
        [Column("AppendixPath", TypeName = "varchar(255)")]
        public string AppendixPath { get; set; }

        /// <summary>
        /// 附件类型（png，jpg）
        /// </summary>
        [Comment("附件类型")]
        [Column("AppendixType", TypeName = "varchar(40)")]
        public string AppendixType { get; set; }

        /// <summary>
        /// 关联ID
        /// </summary>
        [Comment("关联ID")]
        [Column("LinkId", TypeName = "char(36)")]
        public Guid LinkId { get; set; }
    }
}
